package com.study.proxy.staticproxy;

public class Zhanglaosan implements IPerson {

    private Zhangsan person;

    public Zhanglaosan(Zhangsan person){
        this.person = person;
    }

    @Override
    public void findLove() {
        before();
        person.findLove();
        after();
    }

    private void before() {
        System.out.println("物色");
    }

    private void after() {
        System.out.println("交往");
    }
}
